#define _CRT_SECURE_NO_WARNINGS
#include"string.h"

namespace bear
{
	void test01()
	{
		string s1;
		string s2("abcd");
		std::cout << s2.c_str() << std::endl;
		std::cout << s2.size() << std::endl;
		std::cout << s2[3] << std::endl;
		std::cout << (char)(s2[3] + 1) << std::endl;
		std::cout << std::endl;
		string::iterator it1 = s2.begin();
		while (it1 != s2.end())
		{
			std::cout << (*it1) << std::endl;
			++it1;
		}
	}
}
int main()
{
	bear::test01();
	return 0;
}